package com.haohan.cloud.scm.api.constant.converter.crm;

import cn.hutool.core.convert.Converter;
import com.haohan.cloud.scm.api.constant.enums.crm.DeliveryGoodsTypeEnum;

/**
 * @author dy
 * @date 2019/12/10
 */
public class DeliveryGoodsTypeEnumConverterUtil implements Converter<DeliveryGoodsTypeEnum> {
    @Override
    public DeliveryGoodsTypeEnum convert(Object o, DeliveryGoodsTypeEnum e) throws IllegalArgumentException {
        if (null == o) {
            return null;
        }
        return DeliveryGoodsTypeEnum.getByType(o.toString());
    }

}